//
//  BVMyCollectionViewController.m
//  XiangYu
//
//  Created by YYKJ on 2017/6/16.
//  Copyright © 2017年 YYKJ. All rights reserved.
//  我的收藏

#import "BVMyCollectionViewController.h"
#import "BVCollectionCell.h"

#define BUY_MINE_TABLEVIEWCELL1 @"BVMineCell1"
@interface BVMyCollectionViewController()<UITableViewDelegate,UITableViewDataSource>

@property (nonatomic ,strong) UITableView      *tabView;

@end

@implementation BVMyCollectionViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self.view setBackgroundColor:[UIColor BVBackgroundLightGrayColor]];
    [self.navigationItem setTitle:@"我的收藏"];
    
    [self.view addSubview:self.tabView];
}

#pragma mark -
#pragma mark - UITableViewDelegate,UITableViewDataSource

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    
    return 10;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    
    BVCollectionCell *cell = [tableView dequeueReusableCellWithIdentifier:BUY_MINE_TABLEVIEWCELL1];
        
    return cell;
    
}

-(UITableView *)tabView{
    if (!_tabView) {
        self.tabView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, ScreenW, ScreenH-64) style:UITableViewStylePlain];
        [self.tabView setDelegate:self];
        [self.tabView setDataSource:self];
        [self.tabView setBackgroundColor:[UIColor clearColor]];
        [self.tabView setTableFooterView:[UIView new]];
        [self.tabView setShowsVerticalScrollIndicator:NO];
        [self.tabView setRowHeight:80];
        [self.tabView registerClass:[BVCollectionCell class] forCellReuseIdentifier:BUY_MINE_TABLEVIEWCELL1];
    }
    return _tabView;
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    
    
}


@end
